package com.project.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 饼图,统计对象
 */
@Data
@ApiModel(value = "统计对象")
public class PieBean {
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "总额")
    private Integer value;

    public PieBean() {
    }

    public PieBean(String name, Integer value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "PieBean{" +
                "name='" + name + '\'' +
                ", value=" + value +
                "}\n";
    }
}
